package main

import (
	"time"
	"log"
)

type Animal struct {
	name string
	age int
}

type Person struct {
	Animal
	birth time.Time
	addr string
}


func main() {


	p := &Person {
		Animal: Animal{"ll", 44	},
		birth : time.Now(),
		addr: "dsfsfa",
	}

	log.Println(p)

	p.changeAge()

	log.Println(p)
	
}

func (this *Person )changeAge()  {
	this.Animal.age = 66
}
